﻿using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Options;
using Yz.Base.Config;

namespace Yz.Web.ViewComponents
{
    public class BottomViewComponent : ViewComponent
    {
        private readonly WebConfig _config;
        public BottomViewComponent(IOptions<WebConfig> optionsWebConfig)
        {
            _config = optionsWebConfig.Value;
        }

        public async Task<IViewComponentResult> InvokeAsync()
        {
            ViewBag.SysName = _config.SysName;
            return View();
        }
    }
}
